<?php


namespace app\common\model;


use think\Model;

class AboutconfigModel extends Model
{
    protected $name = 'aboutconfig';



    public function getConfigInfo(): array
    {
        try {
            $data = $this->get(1);
            $data->about_image = full_url($data->about_image);
            $data->brand_video = full_url($data->brand_video);
            $data->research_and_development_strength_image = full_url($data->research_and_development_strength_image);
            return [
                'code' => 200,
                'msg' => '请求成功',
                'data' => $data
            ];
        }catch (\Exception $e) {
            return [
                'code' => $e->getCode(),
                'msg' => $e->getMessage(),
                'data' => []
            ];
        }
    }

}